{% extends "layouts/application.html" %}
{% block content %}

<div align="center">
  <div class="boxright">
    <div class="bltop2">
      <div align="left">
        <strong>
          &nbsp;&nbsp;&nbsp;当前位置: &nbsp;&nbsp;
          <a href="/{%site_root%}/manage/index/">后台管理</a>&nbsp;&nbsp;
          <img src="/site_media/images/zd_arrow.gif">&nbsp;&nbsp;
          <a href="/{%site_root%}/affiche/list/">公告管理</a>&nbsp;&nbsp;
        </strong>
      </div>
    </div>
      <form action="" method="post">
        <TABLE id=tbl_affiche_list  cellSpacing=0 cellPadding=4 width="100%" border=0>
          <thead>
            <tr>
              <th class=rtdw width="4%">
              <INPUT id="chkAll" onclick="title_check('chkAll', 'chkID')"  type=checkbox value=checkbox></th>
              <th class=rep_li_c width="60%"><STRONG>标题</STRONG></th>
              <th class=rep_li_c width="10%"><STRONG>作者</STRONG></th>
              <th class=rep_li_c width="26%"><STRONG>创建日期</STRONG></th>
            </tr>
          </thead>
          <TBODY>
            {% for pub in objects %}
              <TR id="tr_{{pub.id}}" style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
                <TD class=rtdw2>
                  <INPUT type=checkbox value="{{pub.id}}" name="chkID" onclick="rows_check('chkAll', 'chkID')">
                </TD>
                <TD class=rep_li_td_bt ALIGN="left">
                  <ul>
                    <A href="{{pub.get_id_link}}" style="text-decoration:underline">{{pub.name}}</A>
                  </ul>
                </TD>
                <TD class=rep_li_td_bt>{{pub.user}}</TD>
                <TD class=rep_li_td_bt>{{pub.date|date:"Y年n月j日h时i分"}}</TD>
              </TR>
            {% endfor %}
          </TBODY>
        </TABLE>
        <TABLE class=tatop7px cellSpacing=0 cellPadding=4 width="100%" border=0>
          <TBODY>
            <TR>
              <TD  align="center">
              </TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE id="tbl_affiche_list"  cellSpacing=0 cellPadding=4 width="100%" border=0>
          <tbody>
              <TR>
                <TD class=rep_li_c2 colSpan=4 align="center">
                  <INPUT onclick="location.href='/{%site_root%}/affiche/new/'" onMouseOver="this.className='submit2'" onMouseOut ="this.className='submit'" class="submit" name="button" type="button" value="添加">
                  <INPUT ONCLICK="return check_select('chkID');" onMouseOver="this.className='submit2'" onMouseOut ="this.className='submit'" class="submit" name="button" type="submit" value="删除">
                </TD>
              </TR>
          </tbody>
        </TABLE>
        </form>
  </div>
</div>
{% endblock %}
